/* 移动端触摸交互组件样式 */

.mobile-touch {
  position: relative;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-touch-pressed {
  transform: scale(0.98);
  opacity: 0.8;
}

/* 触摸反馈动画 */
.mobile-touch::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.mobile-touch:active::before {
  width: 200px;
  height: 200px;
  opacity: 0;
}

/* 禁用状态 */
.mobile-touch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* 长按状态 */
.mobile-touch-long-press {
  background-color: rgba(0, 123, 255, 0.1);
  transform: scale(0.95);
}

/* 滑动指示器 */
.mobile-touch-swipe-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mobile-touch-swipe-indicator.show {
  opacity: 1;
}

/* 响应式优化 */
@media (max-width: 480px) {
  .mobile-touch {
    min-height: 44px;
    min-width: 44px;
  }
}

@media (max-width: 375px) {
  .mobile-touch {
    min-height: 40px;
    min-width: 40px;
  }
}

@media (max-width: 320px) {
  .mobile-touch {
    min-height: 36px;
    min-width: 36px;
  }
}
